import java.io.{File, PrintWriter}

/**
  * Created by Alex on 2016/7/31.
  */
case class A(key:String,value:String)
object Test {

def main(args:Array[String]): Unit ={
  val arr = Array(1,2,3,4,5,"asdf")
  val res = arr.collect{case x:Int => x*x}
  println(res.length)
  res.foreach(println)

}



}
